
import 'package:flutter/material.dart';

class ListViewHorizontal extends StatelessWidget {


  const ListViewHorizontal({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: ListView(
          scrollDirection: Axis.horizontal,
//      itemExtent: 200,
          children: <Widget>[
            Container(color: Colors.redAccent,width: 200,),
            Container(color: Colors.green,width: 200,),
            Container(color: Colors.blue,width: 200,),
            Container(color: Colors.purple,width: 200,),
            Container(color: Colors.orange,width: 200,),

          ],
        ),
      ),

    );
  }
}